 {
        

        var o = require("./UISoundManager.js"), i = require("./UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                chuxianAnim: cc.Animation,
                chuxianAnim_title: cc.Animation,
                nodeCollectBtn: cc.Button,
                labCoin: cc.Label,
                everLoopLight: cc.Node,
                loopParticle: cc.Node
            },
            init: function () {
            },
            onLoad: function () {
                this.rewardSum = 0;
            },
            start: function () {
                this.chuxianAnim.on("finished", function () {
                    console.log("this.everLoopLight :", this.everLoopLight.rotation, this.everLoopLight.opacity),
                        this.nodeCollectBtn.interactable = !0, this.loopParticle.active = !0, this.chuxianAnim.play("1jinbixunhuan_loop");
                }.bind(this), this), this.scheduleOnce(function () {
                    this.chuxianAnim_title.node.active = !0, this.chuxianAnim_title.play();
                }.bind(this), 0);
            },
            setData: function (e) {
                this.rewardIndex = e.rewardIndex, this.rewards = e.rewards || [], this.isBigPrize = e.isBigPrize,
                    this.createItems();
            },
            createItems: function () {
                for (var e = 0; e < this.rewards.length; e++) this.rewardSum = this.rewardSum + this.rewards[e].count;
                this.labCoin.string = this.rewardSum + "金币";
            },
            setItemData: function (e, t) {
                Global.utils.searchNode(e, "label").getComponent(cc.Label).string = t + "金币";
            },
            onClickOK: function () {
                this.OnPanelClose();
            },
            OnPanelClose: function () {
                o.playEffect("select");
                var e = Global.UIPopupManager.getPopupCompByUrl("PopupPanel/Panel_InviteFri");
                if (this.isBigPrize) {
                    var t = e.getNodeBigPrize();
                    Global.notificationCenter.emit(Global.eventName.MSG_SET_NODERECEIVE_ACTIVE, {
                        parent: t,
                        active: !0
                    }), e.setIsGotBigPrize(!0);
                } else for (var n = 0; n < e.getGrims().length; n++) n <= this.rewardIndex && Global.notificationCenter.emit(Global.eventName.MSG_SET_NODERECEIVE_ACTIVE, {
                    parent: e.getGrims()[n],
                    active: !0
                });
                this.closePanel();
            }
        })
    }